package com.wuban.javaproject;

import com.alibaba.fastjson.JSONObject;
import com.wuban.javaproject.bean.HotVideo;
import com.wuban.javaproject.bean.HotVideoComm;
import com.wuban.javaproject.request.HttpUtils;
import com.wuban.javaproject.service.HotVideoService;

import java.util.List;

/**
 * @author:wulixin
 * @email:2765774288@qq.com
 * @desc:该项是Java项目的主函数入口
 * @datetime:2021/12/16 21:06
 */
public class Main {
    public static void main(String[] args) {
        HotVideoService service = new HotVideoService();
        List<HotVideo> list = service.getHotVideo();
        int a = 0;
        for (Object i : list) {
            System.out.println("总共为您查询到"+list.size()+"条热门视频");
            System.out.println("第"+(a+1)+"条视频：");
            System.out.println("标题："+list.get(a).getTitle());
            System.out.println("作者："+list.get(a).getAuthor());
            System.out.println("视频链接："+list.get(a).getShare_url());
            System.out.println("图片链接："+list.get(a).getItem_cover());
            System.out.println("热度指数："+list.get(a).getHot_value());
            System.out.println("热点词汇："+list.get(a).getHot_words());
            System.out.println("播放数："+list.get(a).getPlay_count());
            System.out.println("点赞数："+list.get(a).getDigg_count());
            System.out.println("评论数："+list.get(a).getComment_count());
            a++;
        }

    }

}
